package com.googlecode.cswish.action;

import java.util.List;


import com.googlecode.cswish.model.Person;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.Preparable;

public class PersonAction implements Preparable {
    private List<Person> persons;
    private Person person;
    private Integer id;

    public String list() {
    	
        return Action.SUCCESS;
    }

    public String save() {
        this.person = new Person();
        return list();
    }

    public String remove() {
        return list();
    }

    public List<Person> getPersons() {
        return persons;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void prepare() throws Exception {
    }

    public Person getPerson() {
        return person;
    }

    /**
     * @param person aaaa
     */
    public void setPerson(Person person) {
        this.person = person;
    }
}
